package ams.service;

import java.util.List;

import ams.model.dto.ExecResult;
import ams.model.entity.Rights;
import ams.model.entity.Role;

public interface IRoleService {
	
	public List<Role> rolePage(Integer page,Integer rows);
	
	public Long totalCount();
	
	public Role get(Integer id);

	public ExecResult add(Role role);
	
	public ExecResult update(Role role);
	
	public ExecResult delete(List<Integer> idList);
	
	public List<Rights> getRoleRights(Role role);
	
	public ExecResult updateRoleRights(Integer roleId,List<Integer> rightsIdList);
	
	public List<Role> roleCatalog();
	
}
